New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cryptic-css/plugin-gutter

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptic-css/plugin-gutter

Adds support for margin, padding and grid-gap to automatically convert numbers to the multiple of gutter.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-66.67%
Maintainers
2
Weekly downloads
 
Created
Source

@cryptic-css/plugin-gutter

Adds support to use predefined gutter values.

Supported properties

  • p
  • pt
  • pr
  • pb
  • pl
  • m
  • mt
  • mr
  • mb
  • ml
  • gg
  • grg
  • gcg

Usage

import ccss from 'cryptic-css'

ccss({
    p: 2, // padding: 10rem;
    ml: true // margin-left: 5rem;
    m: [1, 0, 2, 3] // margin: 5rem 0 10rem 15rem;
})

The defined gutter value is multiplied by the given number and the defined unit is being applied to it.

Configuration

The plugin introduces the option key gutter. Be default it's: 5

import { setOptions } from 'cryptic-css'

setOptions({
    gutter: 10 // 1 * gutter = 10rem
})

FAQs

Package last updated on 13 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc